package by.home.controller;

import java.io.IOException;
import java.util.Map;

public abstract class Action {

    public abstract Params executeAndGet(Map params) throws IOException, ClassNotFoundException;

    public String getStringParameter(Object parameter) {
        String formattedParameter;
        formattedParameter = (String) ((Object[]) parameter)[0];
        return formattedParameter;
    }
}
